import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { StoreStoreEntity } from '../../entity/store';
import { StoreStoreService } from '../../service/store';

/**
 * 店家信息
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: StoreStoreEntity,
  service: StoreStoreService,
  pageQueryOp: {
    select: ['a.*', 'b.agentName'],
  },
})
export class AdminStoreStoreController extends BaseController {
  @Inject()
  storeStoreService: StoreStoreService;
}
